Skip to content

feat: add ManagedBy build flag to disable auto-updates - #117

Merged
oschwartz10612 merged 1 commit into
fosrl:mainfrom
ToBinio:feature-managed-by
Sep 21, 2026
Merged

oschwartz10612 merged 1 commit into
fosrl:mainfrom
ToBinio:feature-managed-by

Conversation

@ToBinio

@ToBinio ToBinio commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

Add the ManagedBy build flag to let third-party package managers (e.g., Nix) inform the CLI of their presence.
When a package manager is used, the CLI defaults disable_update_check = true.

How to Test

  1. Build the CLI with ManagedBy set (e.g., -ldflags "-X github.com/fosrl/cli/internal/config.ManagedBy=nix").
  2. Run pangolin config show and see disable_update_check defaults to true.

@oschwartz10612
oschwartz10612 merged commit 1544eb2 into fosrl:main Sep 21, 2026
@oschwartz10612

Copy link
Copy Markdown
Member

Thanks! Good idea!

@ToBinio
ToBinio deleted the feature-managed-by branch September 21, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants